//    Copyright (C) Kherty.  All rights reserved.
using System;
using OpenLS.Drawing;

namespace OpenLS.Chart.UI
{
    internal class AccentFillPattern : FillPattern
    {
        public override ColorBase GetColor(int index)
        {
            switch (index%6)
            {
                case 0:
                    return new ThemeColor(SchemeColorValue.Accent1);
                case 1:
                    return new ThemeColor(SchemeColorValue.Accent2);
                case 2:
                    return new ThemeColor(SchemeColorValue.Accent3);
                case 3:
                    return new ThemeColor(SchemeColorValue.Accent4);
                case 4:
                    return new ThemeColor(SchemeColorValue.Accent5);
                case 5:
                    return new ThemeColor(SchemeColorValue.Accent6);
                default:
                    throw new NotSupportedException();
            }
        }
    }
}